// start数据代理 function MVVM (options) { // 保存配置(等价于vue.$options) this.$options = options // 保存data(等价于vue._data) var data = this._data = this.$options.data var me = this
var me = this, val = this._getVMVal(vm, exp); node.addEventListener('input', function(e) { var newValue = e.target.value; if (val === newValue) { return; }
me._setVMVal(vm, exp, newValue); val = newValue; }) },